export default {
    //开启命名空间，防止多模块方法共享
    namespaced: true,
    state: {
        taskParam: [{ id: 1, name: "吃饭", isDone: false }]
    },
    getters: {},
    actions: {},
    mutations: {
        addTask(state, name) {
            state.taskParam.push({
                id: Date.now(),
                name,
                isDone: false
            })
        },
    },
}